Connectivity Software User's Guide and Reference
ToValueResult Method (UAAttributeDataResult<T>)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.Generic Namespace > UAAttributeDataResult<T> Class : ToValueResult Method
The OPC-UA typed attribute data result to be converted.

The value of this parameter can be null (Nothing in Visual Basic).

Converts OPC-UA typed attribute data result object to a corresponding typed value result object, OpcLabs.BaseLib.OperationModel.Generic.ValueResult<T>.
Syntax
'Declaration
 
<JetBrains.Annotations.CanBeNullAttribute()>
<JetBrains.Annotations.ContractAnnotationAttribute("null => null; notnull => notnull")>
Public Shared Function ToValueResult( _
   ByVal attributeDataResult As UAAttributeDataResult(Of T) _
) As ValueResult(Of T)
'Usage
 
Dim attributeDataResult As UAAttributeDataResult(Of T)
Dim value As ValueResult(Of T)
 
value = UAAttributeDataResult(Of T).ToValueResult(attributeDataResult)
[JetBrains.Annotations.CanBeNull()]
[JetBrains.Annotations.ContractAnnotation("null => null; notnull => notnull")]
public static ValueResult<T> ToValueResult( 
   UAAttributeDataResult<T> attributeDataResult
)
[JetBrains.Annotations.CanBeNull()]
[JetBrains.Annotations.ContractAnnotation("null => null; notnull => notnull")]
public:
static ValueResult<T^>^ ToValueResult( 
   UAAttributeDataResult<T^>^ attributeDataResult
) 

Parameters

attributeDataResult
The OPC-UA typed attribute data result to be converted.

The value of this parameter can be null (Nothing in Visual Basic).

Return Value

The typed value result object that corresponds to the typed attribute data result. null if the attribute data result passed in was null.

This method can return null (Nothing in Visual Basic).

Remarks

This method or property does not throw any exceptions, aside from execution exceptions such as System.Threading.ThreadAbortException or System.OutOfMemoryException.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also